package org.vintagephone;

import org.vintagephone.model.RadioLifecycle;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class RadioActivity extends Activity 
{
	private RadioLifecycle m_lifecycle;
	
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);

		// Remove the title bar from the window.
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);

		// Make the windows into full screen mode.
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

		m_lifecycle = new RadioLifecycle( this );
		m_lifecycle.initialize();
		
		// Render view
		final View view = m_lifecycle.getView();
		
		setContentView( view );
		view.requestFocus();
    }
}